#include <stdio.h> 
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>

#include "common_func.h"
#include "hmi_cmd.h"
#include "usart2.h"

int  simu_flag;


int main(int argc, char** argv)
{	
	usart2_init();
	char buf[16];
	simu_flag = RegRead(0xbf20f500);
	printf("start\n");
	api_cls(WHITE);
	delay_ms(500);
	printf("cls\n");
	api_line(100, 100, 200, 200, BLACK);
	delay_ms(50);
	printf("line\n");
	api_rect(100, 100, 200, 200, RED);
	delay_ms(1000);
	int len = usart2_get_rx_data(buf, 4);
	printf("ret %d %d %d %d %d\n", len, buf[0], buf[1], buf[2], buf[3]);
	return 0;
}
